package com.example.smart_video.ui.fragment;

import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.databinding.DataBindingUtil;

import com.example.cleandemo3.R;
import com.example.cleandemo3.databinding.MineFragmentBinding;
import com.example.smart_video.model.Constants;
import com.example.smart_video.ui.activity.ImageListActivity;
import com.example.smart_video.ui.activity.TextListActivity;
import com.example.smart_video.ui.activity.ThumbListActivity;
import com.wink_172.library.fragment.BaseFragment;
import com.wink_172.library.utils.MMKVTool;

import org.xutils.x;

public class MineFragment extends BaseFragment {

    public MineFragmentBinding binding;

    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        binding = DataBindingUtil.inflate(inflater, R.layout.fragment_mine, container, false);

        binding.imageList.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                ImageListActivity.startActivity(getActivity(), -1);
            }
        });

        binding.textList.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                TextListActivity.startActivity(getActivity(), -1);
            }
        });

        binding.thumbList.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                ThumbListActivity.startActivity(getActivity(), -1);
            }
        });

        initView();
        init();
        return binding.getRoot();
    }


    private static final String TAG = "MineFragment";

    public void initView() {

    }

    public void init() {

    }


}
